<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'landlord-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary(array($user,$model)); ?>
	<h3> Personal Detail </h3>
    <hr />
    <div class="row">
		<?php echo $form->labelEx($user,'FirstName'); ?>
		<?php echo $form->textField($user,'FirstName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($user,'FirstName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($user,'LastName'); ?>
		<?php echo $form->textField($user,'LastName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($user,'LastName'); ?>
	</div>
	<?php 
	
	if (!$isUpadateForm) { ?>
	<div class="row">
		<?php echo $form->labelEx($user,'userName'); ?>
		<?php echo $form->textField($user,'userName',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($user,'userName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($user,'Password'); ?>
		<?php echo $form->passwordField($user,'Password',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($user,'Password'); ?>
	</div>
   <?php } ?>
	<div class="row">
		<?php echo $form->labelEx($user,'email'); ?>
		<?php echo $form->textField($user,'email',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($user,'email'); ?>
	</div>
    <br />
    <h3> Company Detail </h3>
    <hr />
	<div class="row">
		<?php echo $form->labelEx($model,'CompanyName'); ?>
		<?php echo $form->textField($model,'CompanyName',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'CompanyName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'StreetAddress'); ?>
		<?php echo $form->textField($model,'StreetAddress',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'StreetAddress'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SecondLineAddress'); ?>
		<?php echo $form->textField($model,'SecondLineAddress',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'SecondLineAddress'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'City'); ?>
		<?php echo $form->textField($model,'City',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'City'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'State'); ?>
		<?php echo $form->textField($model,'State',array('size'=>2,'maxlength'=>2)); ?>
		<?php echo $form->error($model,'State'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ZipCode'); ?>
		<?php echo $form->textField($model,'ZipCode',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'ZipCode'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PhoneNumber'); ?>
		<?php echo $form->textField($model,'PhoneNumber',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'PhoneNumber'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FaxNumber'); ?>
		<?php echo $form->textField($model,'FaxNumber',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'FaxNumber'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'EmailAddress'); ?>
		<?php echo $form->textField($model,'EmailAddress',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'EmailAddress'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SoftwareTitle'); ?>
		<?php echo $form->textField($model,'SoftwareTitle',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'SoftwareTitle'); ?>
	</div>

	<!--<div class="row">
		<?php //echo $form->labelEx($model,'Number of Properties'); ?>
		<?php //echo $form->textField($model,'NumberProperties'); ?>
		<?php //echo $form->error($model,'NumberProperties'); ?>
	</div>
-->
	<div class="row">
		<?php echo $form->labelEx($model,'PayPalAccountAddress'); ?>
		<?php echo $form->textField($model,'PayPalAccountAddress',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'PayPalAccountAddress'); ?>
	</div>

	<!--<div class="row">
		<?php echo $form->labelEx($model,'iduser'); ?>
		<?php echo $form->textField($model,'iduser'); ?>
		<?php echo $form->error($model,'iduser'); ?>
	</div>-->

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->